﻿@model ProductDetailsModel.GiftCardModel
@using Nop.Web.Models.Catalog;
@if (Model.IsGiftCard)
{
    <div class="giftcard basic-form">
        <div class="form-item">
            @Html.LabelFor(model => model.RecipientName, new { }, ":")
            @Html.TextBoxFor(model => model.RecipientName, new { @class = "recipient-name form-control" })
        </div>
        @if (Model.GiftCardType == Nop.Core.Domain.Catalog.GiftCardType.Virtual)
        {
            <div class="form-item">
                @Html.LabelFor(model => model.RecipientEmail, new { }, ":")
                @Html.TextBoxFor(model => model.RecipientEmail, new { @class = "recipient-email form-control" })
            </div>
        }
        <div class="form-item">
            @Html.LabelFor(model => model.SenderName, new { }, ":")
            @Html.TextBoxFor(model => model.SenderName, new { @class = "sender-name form-control" })
        </div>
        @if (Model.GiftCardType == Nop.Core.Domain.Catalog.GiftCardType.Virtual)
        {
            <div class="form-item">
                @Html.LabelFor(model => model.SenderEmail, new { }, ":")
                @Html.TextBoxFor(model => model.SenderEmail, new { @class = "sender-email form-control" })
            </div>
        }
        <div class="form-item">
            @Html.LabelFor(model => model.Message, new { }, ":")
            @Html.TextAreaFor(model => model.Message, new { @class = "text-area form-control" })
        </div>
    </div>
}